package com;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
//扫描mybatis接口的注解
@MapperScan("com.xmg.server.goods.mapper")
//开启事务管理
@EnableTransactionManagement
public class GoodsConfig {
    public static void main(String[] args) {
        SpringApplication.run(GoodsConfig.class, args);
    }
}
